<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>坦克大战</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #222;
            font-family: Arial, sans-serif;
        }
        
        #game-container {
            position: relative;
        }
        
        #game-canvas {
            border: 2px solid #444;
            background-color: #000;
        }
        
        #game-info {
            color: white;
            margin-top: 10px;
            display: flex;
            justify-content: space-between;
        }
        
        #game-over {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 2em;
            display: none;
        }
        
        #pause-btn, #continue-btn, #restart-btn {
            margin-left: 10px;
            padding: 5px 10px;
            font-size: 0.9em;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }
        
        #pause-btn:hover, #continue-btn:hover, #restart-btn:hover {
            background-color: #45a049;
        }
        
        #continue-btn:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }
    </style>
</head>
<body>
    <div id="game-container">
        <canvas id="game-canvas" width="600" height="600"></canvas>
        <div id="game-info">
            <span>生命: <span id="lives">3</span></span>
            <span>分数: <span id="score">0</span></span>
            <span>敌人: <span id="enemies">5</span></span>
            <button id="pause-btn">暂停</button>
            <button id="continue-btn" disabled>继续</button>
            <button id="restart-btn">重新开始</button>
        </div>
        <div id="game-over">
            <h1>游戏结束</h1>
            <p>最终分数: <span id="final-score">0</span></p>
            <button id="restart-btn">重新开始</button>
        </div>
    </div>

    <script src="assets.js"></script>
    <script src="game.js"></script>
</body>
</html>